package com.ftg.learn.cloud.service;

import com.ftg.learn.cloud.dao.DemoDao;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//优雅的访问生产者
@Service
public class DemoService {

    @Autowired
    private DemoDao demoDao;

    public String hello(){
        return demoDao.hello();
    }

}
